
<%@page contentType="text/html" pageEncoding="UTF-8" import="java.util.ArrayList,PO.Stuinfo"%>
<%@taglib  prefix="s" uri="/struts-tags" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
        <style type="text/css">
* {margin: 0;padding: 0;}
body {background:url("http://localhost:8080/SSH/image/1.3.jpg");}
.query_box {width: 100%;margin: 50px auto;margin-left: 150px;
}
table {	border: 8px inset goldenrod;	}
span {color: goldenrod;	font-weight: bolder;	align: center;}
a{color: black;}
a:hover {color: goldenrod;}
</style>
    </head>
    <body >
        <div class="query_box">
        <table align="center" width="80%" border="5" >
            <tr bgcolor="goldenrod" >
               <td bgcolor="black" class='title' align="center"><span>电影编号</span></td>
				<td bgcolor="black" class='title' align="center"><span>电影名</span></td>
				<td bgcolor="black" class='title' align="center"><span>主演</span></td>
				<td bgcolor="black" class='title' align="center"><span>电影类型</span></td>
				<td bgcolor="black" class='title' align="center"><span>上映时间</span></td>
				<td bgcolor="black" class='title' align="center"><span>制片人</span></td>
				<td bgcolor="black" class='title' align="center"><span>操作</span></td>
            </tr>
            <%
                ArrayList list=(ArrayList)session.getAttribute("allInfo");
                if(list.isEmpty()){
                    %>
                    <tr>
                        <td align="center">
                            <span>暂无信息!</span>
                        </td>
                    </tr>
                    <%
                }else{
                    for(int i=0;i<list.size();i++){
                        Stuinfo info=(Stuinfo)list.get(i);
                        %>
                        <tr>    
                            <td align="center"><span><%=info.getId()%></span></td>
                            <td align="center"><a href="http://localhost:8080/SSH/filmsManager/look.jsp"><span><%=info.getName()%></span></a></td>
                            <td align="center"><span><%=info.getStar()%></span></td>
                            <td align="center"><span><%=info.getType()%></span></td>
                            <td align="center"><span><%=info.getTime()%></span></td>
                            <td align="center"><span><%=info.getMaker()%></span></td>
                            <td align="center"><span><a href="http://localhost:8080/SSH/filmsManager/findMessage.jsp">修改</a></span></td>
                        </tr>
                        <%
                    }
                }
            %>
        </table>
        </div>
    </body>
</html>
